/* eslint-disable no-bitwise */
function generateUUIDWithTimestamp() {
    const timestamp = Date.now().toString(16); // 获取当前时间戳并转为16进制
    return `xxxxxxxx-xxxx-4xxx-yxxx-${timestamp.slice(-12).replace(/[xy]/g, (c) => {
        const r = Math.random() * 16 | 0;
        const v = c === 'x' ? r : (r & 0x3 | 0x8);
        return v.toString(16);
    })}`;
}

export default generateUUIDWithTimestamp();
